package isssr.bean.boundary;

import isssr.bean.control.UserAuthenticationControl;
import isssr.bean.utility.EncryptionUtility;

import java.io.Serializable;

public class LoginForm implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5370949219818185926L;
	private String username;
	private String password;
	private UserAuthenticationControl control;
	
	
	public LoginForm(){}


	public String getUsername() {
		return username;
	}


	public void setUsername(String username) {
		this.username = username;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}
	
	
	public void setControl(UserAuthenticationControl control) {
		this.control = control;
	}


	public String login()
	{
		return this.control.login(this.getUsername(), this.getPassword());
	}
	
	
}
